class LoginInfo {
  final String nickname;
  final String portrait;
  final String slogan;

  LoginInfo({
    this.nickname = '',
    this.portrait = '',
    this.slogan = '',
  });

  factory LoginInfo.fromJSON(Map<String, dynamic> map) {
    LoginInfo info = LoginInfo(
      nickname:map['nickname'],
      portrait:map['portrait'],
      slogan:map['slogan'],
    );
    return info;
  }

  Map<String, dynamic> getJson() {
    return {
      'nickname':nickname ?? '',
      'portrait':portrait ?? '',
      'slogan':slogan ?? ''
    };
  }
}

